interface FetchScanResultAPIResData {
  code: number
  msg: string
  time: string
  data: ScanResult
}

/**
 * @description 根据传入的班级 id，获取签到信息，班级 id 从二维码中获取
 */
export function fetchScanResultAPI(id: string, token: string) {
  return httpInstance.get<FetchScanResultAPIResData>(
    '/api/sign/classscan',
    { params: { id }, headers: { token } },
  )
}
